/* 购物车样式 */
.div7 {
    background-color: #fff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.bar2 h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f8f8;
    font-weight: bold;
}


.quantity-controls {
    display: flex;
    align-items: center;
}

.quantity-controls button {
    width: 30px;
    height: 30px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 16px;
}

.quantity-controls button:hover {
    background-color: #e0e0e0;
}

.quantity-controls input {
    width: 50px;
    height: 28px;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0 5px;
}

.total-label {
    text-align: right;
    font-weight: bold;
    font-size: 18px;
}

.total-price {
    font-weight: bold;
    color: #e74c3c;
    font-size: 18px;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.continue-shopping,
.checkout {
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}

.continue-shopping {
    background-color: #f8f8f8;
    color: #333;
    border: 1px solid #ddd;
}

.checkout {
    background-color: #e74c3c;
    color: white;
    border: none;
}

.continue-shopping:hover {
    background-color: #e0e0e0;
}

.checkout:hover {
    background-color: #c0392b;
}

.remove-item {
    background-color: #f8f8f8;
    color: #333;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.remove-item:hover {
    background-color: #e0e0e0;
}